package com.ruoyi.task.mapper;

import com.ruoyi.task.domain.SubBankServerConfig;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface SubBankServerConfigMapper {

    public List<SubBankServerConfig> selectServerConfigList(SubBankServerConfig subBankServerConfig);

    public int insertConfig(SubBankServerConfig subBankServerConfig);

    /**
     * 删除参数配置
     *
     * @param configId 参数ID
     * @return 结果
     */
    public int deleteConfigById(Long configId);

    /**
     * 批量删除参数信息
     *
     * @param configIds 需要删除的参数ID
     * @return 结果
     */
    public int deleteConfigByIds(Long[] configIds);


    public SubBankServerConfig selectServerConfigByServerId(Long ServerId);

    public int updateSubSeverConfig(SubBankServerConfig subBankServerConfig);

    /**
     * 查询分行服务器配置列表
     * @return
     */
    public List<SubBankServerConfig> queryBranchBankServerConfigList();

    /**
     * 根据行号查询行服务器ip
     * @param subBankCode
     * @return
     */
    public SubBankServerConfig queryBranchBankServerIp(@Param("subBankCode") String subBankCode);
}
